*JACKNIFE TEST: GRAPHING THE ROBUSTNESS OF THE RESULTS

*Hegemonic

clear
set seed 1234 
set matsize 11000

*import excel "C:\Dropbox\Lublin\Nacho\RC Model 3 dropping one country at a time.xlsx", sheet("forgraphing") firstrow case(lower)
import excel "D:\Disco TEMP\PAPER\SYDNEY\autoc\temp xtpsce.xlsx", sheet("g compet") firstrow


merge 1:m country using  "D:\Disco TEMP\PAPER\SYDNEY\autoc\creating country labels.dta"


*"C:\Dropbox\Lublin\Nacho\Creating country labels.dta"
 drop tstat
 gen tstat=ttestok
 *scatter  tstat2 state
 graph dot tstat, over(country)
 
 
  twoway scatter tstat ccode, xtitle("Country")  ytitle("Competitive vs Uncompetitive (H1) tstat")  /// 
 ylabel(-3(1)3) yline(-1.66) yline(-1.99) yline(-2.66) xlabel(, nolabel) 
 
graph save "Hegemonic", replace

************
*Boycott
************

clear
set seed 1234 
set matsize 11000

import excel "D:\Disco TEMP\PAPER\SYDNEY\autoc\temp xtpsce.xlsx", sheet("g boycott") firstrow clear

merge 1:m country using  "D:\Disco TEMP\PAPER\SYDNEY\autoc\creating country labels.dta"


*"C:\Dropbox\Lublin\Nacho\Creating country labels.dta"
 drop tstat
 gen tstat=ttestok
 *scatter  tstat2 state
 graph dot tstat, over(country)
 
 
  twoway scatter tstat ccode, xtitle("Country")  ytitle("Opposition boycott (H1A) tstat")  /// 
 ylabel(-3(1)3) yline(-1.66) yline(-1.99) yline(-2.66) xlabel(, nolabel) 
 
graph save "boycott", replace

************
*Opposition Coercion
************

clear
set seed 1234 
set matsize 11000

import excel "D:\Disco TEMP\PAPER\SYDNEY\autoc\temp xtpsce.xlsx", sheet("g govintimd") firstrow clear

merge 1:m country using  "D:\Disco TEMP\PAPER\SYDNEY\autoc\creating country labels.dta"

*"C:\Dropbox\Lublin\Nacho\Creating country labels.dta"
 drop tstat
 gen tstat=ttestok
 *scatter  tstat2 state
 graph dot tstat, over(country)
 
  twoway scatter tstat ccode, xtitle("Country")  ytitle("Opposition coercion (H2A) tstat")  /// 
 ylabel(0(1)5) yline(1.66) yline(1.99) yline(2.66) xlabel(, nolabel) 
 
graph save "Gov Intim", replace


************
*Government Election violence
************

clear
set seed 1234 
set matsize 11000

import excel "D:\Disco TEMP\PAPER\SYDNEY\autoc\temp xtpsce.xlsx", sheet("g elviol") firstrow clear

merge 1:m country using  "D:\Disco TEMP\PAPER\SYDNEY\autoc\creating country labels.dta"


*"C:\Dropbox\Lublin\Nacho\Creating country labels.dta"
 drop tstat
 gen tstat=ttestok
 *scatter  tstat2 state
 graph dot tstat, over(country)
 
 
  twoway scatter tstat ccode, xtitle("Country")  ytitle("Civilian violence (H2B) tstat")  /// 
 ylabel(-4(1)0) yline(-1.66) yline(-1.99) yline(-2.66) xlabel(, nolabel) 
 
graph save "Gov Elec Viol", replace


************
*Government Violence vs people
************

clear
set seed 1234 
set matsize 11000

import excel "D:\Disco TEMP\PAPER\SYDNEY\autoc\temp xtpsce.xlsx", sheet("g govvspeop") firstrow clear

merge 1:m country using  "D:\Disco TEMP\PAPER\SYDNEY\autoc\creating country labels.dta"

*"C:\Dropbox\Lublin\Nacho\Creating country labels.dta"
 drop tstat
 gen tstat=ttestok
 *scatter  tstat2 state
 graph dot tstat, over(country)
 
  twoway scatter tstat ccode, xtitle("Country")  ytitle("High intensity repression (H2C) tstat")  /// 
 ylabel(0(1)3) yline(1.66) yline(1.99) yline(2.66) xlabel(, nolabel) 
 
graph save "Gov Viol vs People", replace


************
*Vote Buy
************

clear
set seed 1234 
set matsize 11000

import excel "D:\Disco TEMP\PAPER\SYDNEY\autoc\temp xtpsce.xlsx", sheet("g votebuy") firstrow clear

merge 1:m country using  "D:\Disco TEMP\PAPER\SYDNEY\autoc\creating country labels.dta"

*"C:\Dropbox\Lublin\Nacho\Creating country labels.dta"
 drop tstat
 gen tstat=ttestok
 *scatter  tstat2 state
 graph dot tstat, over(country)
 
  twoway scatter tstat ccode, xtitle("Country")  ytitle("Vote buy (H3) tstat")  /// 
 ylabel(-5(1)0) yline(-1.66) yline(-1.99) yline(-2.66) xlabel(, nolabel) 
 
graph save "Vote buy", replace


graph combine "Hegemonic" "boycott" "Gov Intim" "Gov Elec Viol" "Gov Viol vs People" "Vote buy", title(Jackknife Test. Dropping Countries)
